package com.bm.server.controller;

import com.bm.common.dto.SearchDto;
import com.bm.common.vo.R;
import com.bm.server.service.intf.SearchService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Description:
 * @Author: 赵金帅
 * @Date: 2022/07/19/0:37
 */
@RestController
@RequestMapping("/server/search/")
public class SearchController {
    @Resource
    private SearchService service;
    @PostMapping("select.do")
    public R serach(@RequestParam String name){
        return service.search1(name);
    }
    @GetMapping("zuan.do")
    public R zuan(@RequestParam int uid){
        return service.Zuan(uid);
    }
    @GetMapping("remen.do")
    public R remen(){
        return service.selectReMen();
    }
}
